package com.example.inventoryservice.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "stock-service")
public interface StockFeignClient {

    @PostMapping("/stock/record/deduct")
    Boolean recordDeduct(@RequestParam String productId, @RequestParam Integer count);
}
    